package com.sense.kukoo.biz_explore.model

import com.sense.kukoo.common.mvvm.model.BaseMvvmModel
import com.sense.kukoo.common.repo.bean.ResultBean
import com.sense.kukoo.common.repo.http.KukooHttpApi
import com.sense.kukoo.common.repo.http.KukooHttpManager
import com.sense.kukoo.common.repo.http.bean.IndexContentBean
import com.sense.kukoo.common.repo.http.bean.ModuleBean
import retrofit2.http.Path

class Content2Model: BaseMvvmModel() {

    private val TAG: String = javaClass.simpleName

    override fun onModelCleared() {}

    suspend fun indexContent(pageIndex: Int, pageSize: Int, moduleId: Long): ResultBean<List<IndexContentBean>>{
        return KukooHttpManager.instance
            .createHttpClient(KukooHttpApi::class.java)
            .indexContent("${pageIndex}", "${pageSize}", "${moduleId}")
    }
}